package com.ztesoft.web.common.vo;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;

/**
 * 
 * 与IOCP同步数据VO
 * 
 * @author lin.weibin@zte.com.cn
 * @date 2015年9月10日
 * @since 1.0
 */
public class DbLinkInstanceVO extends AbstractDto {
    private Integer dbLinkId;
    private Integer dbBaseId; 
    private String dbName;
    private String dbLinkName;
    private String  dbLinkParam;
    private String dbLinkMethod;
    private String dbLinkBody;
    private String dbLinkDesc;
    private String state;
    private String stateDesc;
    private Date stateDate;
    private Date createDate;
    private String dbUserInfos;
    private String busiSys;
    private String systemName;
    private String subSysIds;
    private String subSysName;
    
    private List<DbUserInfoVO> dbUserInfo;
    public Integer getDbLinkId() {
        return dbLinkId;
    }

    public void setDbLinkId(Integer dbLinkId) {
        this.dbLinkId = dbLinkId;
    }

    public Integer getDbBaseId() {
        return dbBaseId;
    }

    public void setDbBaseId(Integer dbBaseId) {
        this.dbBaseId = dbBaseId;
    }

    public String getDbLinkName() {
        return StringUtils.isBlank(dbLinkName) ? dbLinkName : dbLinkName.trim();
    }

    public void setDbLinkName(String dbLinkName) {
        this.dbLinkName = dbLinkName;
    }

    public String getDbLinkParam() {
        return StringUtils.isBlank(dbLinkParam) ? dbLinkParam : dbLinkParam.trim();
    }
    public void setDbLinkParam(String dbLinkParam) {
        this.dbLinkParam = dbLinkParam;
    }
    
    public String getDbLinkMethod() {
        return StringUtils.isBlank(dbLinkMethod) ? dbLinkMethod : dbLinkMethod.trim();
    }

    public void setDbLinkMethod(String dbLinkMethod) {
        this.dbLinkMethod = dbLinkMethod;
    }

    public String getDbLinkBody() {
        return StringUtils.isBlank(dbLinkBody) ? dbLinkBody : dbLinkBody.trim();
    }

    public void setDbLinkBody(String dbLinkBody) {
        this.dbLinkBody = dbLinkBody;
    }

    public String getDbLinkDesc() {
        return StringUtils.isBlank(dbLinkDesc) ? dbLinkDesc : dbLinkDesc.trim();
    }

    public void setDbLinkDesc(String dbLinkDesc) {
        this.dbLinkDesc = dbLinkDesc;
    }

    public String getState() {
        return StringUtils.isBlank(state) ? state : state.trim();
    }

    public void setState(String state) {
        this.state = state;
    }

	public Date getStateDate() {
		if (this.stateDate != null) 
			return (Date) stateDate.clone();
		return null;
	}

	public void setStateDate(Date stateDate) {
		if (stateDate == null) {
			this.stateDate = null;
		} else {//
			this.stateDate = (Date)stateDate.clone();
		}
	}

	public Date getCreateDate() {
		if(createDate == null) {
	        return null;
	    }
	    return (Date) createDate.clone();
	}

	public void setCreateDate(Date createDate) {
		if (createDate == null) {
			this.createDate = null;
		} else {//
			this.createDate = (Date) createDate.clone();
		}
	}

    public String getDbUserInfos() {
        return dbUserInfos;
    }

    public void setDbUserInfos(String dbUserInfos) {
        this.dbUserInfos = dbUserInfos;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public List<DbUserInfoVO> getDbUserInfo() {
        return dbUserInfo;
    }

    public void setDbUserInfo(List<DbUserInfoVO> dbUserInfo) {
        this.dbUserInfo = dbUserInfo;
    }

    public String getStateDesc() {
        return stateDesc;
    }

    public void setStateDesc(String stateDesc) {
        this.stateDesc = stateDesc;
    }

    public String getBusiSys() {
        return busiSys;
    }

    public void setBusiSys(String busiSys) {
        this.busiSys = busiSys;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }

    public String getSubSysIds() {
        return subSysIds;
    }

    public void setSubSysIds(String subSysIds) {
        this.subSysIds = subSysIds;
    }

    public String getSubSysName() {
        return subSysName;
    }

    public void setSubSysName(String subSysName) {
        this.subSysName = subSysName;
    }

}